package auction.model;

import java.util.*;

/**
 * Misunderstand the meaning of two one-to-many make the many-to-many association
 * @author Wei Sun
 *
 */
@Deprecated
public class Category2OneToMany{
	private Long id;
	private String title;
	
	private Set<Item2OneToMany> items=new HashSet<Item2OneToMany>();
	
	public Category2OneToMany(){
	}
	
	public Category2OneToMany(String t){
		title=t;
	}
	
	public Long getId(){
		return id;
	}
	public void setId(Long i){
		id=i;
	}
	
	public void setItems(Set<Item2OneToMany> i){
		items=i;
	}
	public Set<Item2OneToMany> getItems(){
		return items;
	}
	
	public void setTitle(String i){
		title=i;
	}
	public String getTitle(){
		return title;
	}
}